﻿using Budgetsch.Web.EntityModel;
using Budgetsch.Web.Services;

namespace Budgetsch.ViewModels.Incomes
{
    public class EditIncomeVM : IncomeDetailVMBase
    {
        public EditIncomeVM(BudgetschDomainContext context_, Income editedIncome_) : base(context_)
        {
            Income = editedIncome_;
        }

        public override void Commit()
        {
            m_context.SubmitChanges();
        }
    }
}
